//ArrayLength.java
package com.ylaihui.array;

public class ArrayLength {
	public static void main(String[] args) {
		//如何获取数组的长度。
		//属性:length
		String[] names = new String[]{"Kon","Jon","Fon"};
		
		// 遍历数组 names
		for (int i = 0; i < names.length; i++) {
			System.out.println(names[i]);
		}
	}
}
